CMake Notes
CMake Commands
add_library
cmake_minimum_required
cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]] [FATAL_ERROR])
- This command set the minimum required version of CMake for a probject.
VERSION
is a must in this command.FATAL_ERROR
is optional, but it shoud be specified so CMake version 2.4 and lower can fail with an error instead of just a warning.